package com.tianqicode.demo.config;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

public class MyServiceInterceptor implements MethodInterceptor {

    @Override
    public Object invoke(MethodInvocation invocation) throws Throwable {
        try {
            System.out.println("before proxied");
            return invocation.proceed();
        }finally {
            System.out.println("finally proxied");
        }
    }
}
